﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AssetEdit.aspx.cs" Inherits="Web.AssetEdit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
	<title>资产维护</title>
    <base target="_self" />
	<meta content="ie=7" http-equiv="x-ua-compatible">
	<script src="Scripts/jquery-1.7.min.js" type="text/javascript"></script>
	<link href="Styles/validate.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="Scripts/easy_validator.pack.js"></script>
	<LINK rel="stylesheet" href="Styles/Style01.css">
    <script src="Content/scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
	<script LANGUAGE="JavaScript">
	    $(function () {
	        $("[reg]").parents("td").prev().append("<font color='#ff0000'>*</font>");
	        $("textarea").each(function () { this.style.height = this.scrollHeight + 16 + 'px'; });
	        $("textarea").keydown(function () { this.style.height = this.scrollHeight + 16 + 'px'; });
	        $("#btnSave").click(function () { return formValidate(); });
	    });
	    function formValidate() {
	        var isSubmit = true;
	        $("form").find("[reg],[url]:not([reg])").each(function () {
	            if (!validate($(this), this.tagName)) {
	                isSubmit = false;
	            }
	        });
	        if (!isSubmit) {
	            alert("请确认'红字或红框'处的输入正确!");
	            return false;
	        }
	        return true;
	    }
	</script>
	<style>
		h3,h4{margin:0;padding:0;margin-top:3px;}
	    TEXTAREA { OVERFLOW-Y: hidden;}
	    TABLE.s1 TD { PADDING-BOTTOM: 0px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; HEIGHT: 24px; PADDING-TOP: 0px }
	    INPUT[type=text],textarea { WIDTH: 100%; MARGIN-LEFT: -1px;color:#0099cb; }
	    em{float:left;}
	    .spec{background:#eee;font-weight:bolder;}
	</style>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<table class="s1">
				<tr>
					<td width="15%">资产编号</td>
					<td width="35%"><input id="No" runat="server" title="不能为空!" reg="."></input></td>
					<td width="15%">资产名称</td>
					<td><input id="Name" runat="server" title="不能为空!" reg="."></input></td>
				</tr>
				<tr>
					<td>序列号</td>
					<td><input id="Sn" runat="server"></input></td>
					<td>资产类别</td>
					<td><select id="Class" runat="server" title="不能为空!" reg=".">
                    <option value="">请选择</option>
                    <option value="非固定资产">非固定资产</option>
                    <option value="房屋">房屋</option>
                    <option value="空调">空调</option>
                    <option value="电脑">电脑</option>
                    <option value="汽车">汽车</option>
                    <option value="其他固定资产">其他固定资产</option>
                    </select></td>
				</tr>
				<tr>
					<td>型号</td>
					<td><input id="Model" runat="server"></input></td>
					<td>规格</td>
					<td><input id="Spec" runat="server"></input></td>
				</tr>
				<tr>
					<td>单位</td>
					<td><input id="Unit" runat="server"></input></td>
					<td>供应商</td>
					<td><select id="Supplier" runat="server">
                    <option value="">请选择</option>
                    <option value="广州商羽">广州商羽</option>
                    <option value="东莞讯宜">东莞讯宜</option>
                    <option value="东莞萨博">东莞萨博</option>
                    <option value="东莞佳博科技">东莞佳博科技</option>
                    <option value="东莞博讯电脑">东莞博讯电脑</option>
                    <option value="东莞博讯">东莞博讯</option>
                    <option value="东莞商羽">东莞商羽</option>
                    <option value="沈阳北方华夏数码">沈阳北方华夏数码</option>
                    </select></td>
				</tr>
				<tr>
					<td>价格</td>
					<td><input id="Price" runat="server"></input></td>
					<td>购买日期</td>
					<td><input id="BuyDate" runat="server" class="Wdate" onclick="WdatePicker();"/></td>
				</tr>
				<tr>
					<td>设备状态</td>
					<td><input id="Status" runat="server"></input><select id="Select1" runat="server">
                    <option value="">请选择</option>
                    <option value="闲置">闲置</option>
                    <option value="正常使用">正常使用</option>
                    <option value="报废">报废</option>
                    </select></td>
					<td>派发日期</td>
					<td><input id="DistributeDate" runat="server" class="Wdate" onclick="WdatePicker();"/></td>
				</tr>
				<tr>
					<td>资产寿命</td>
					<td><input id="DueTime" runat="server"></input></td>
					<td>保管人</td>
					<td><select id="Keeper" runat="server" title="不能为空!" reg="."></select></td>
				</tr>
				<tr>
					<td>备注</td>
					<td colspan="3"><textarea id="Remarks" runat="server"></textarea></td>
				</tr>
			</table>
            <div style="text-align:right;margin-right:24px;margin-top:6px;">
                <asp:button runat="server" class=btn text="保存" id="btnSave" onclick="btnSave_Click"/>
                <input type=button class=btn value="关闭" onclick="window.close();" />
            </div>
		</form>
	</body>
</HTML>